<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTixiansTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('tixians', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id')->comment('用户ID');
            $table->string('note')->default('')->comment('备注');
            $table->string('realname')->default('')->comment('真实姓名');
            $table->string('alipay_account')->default('')->comment('支付宝账号');
            $table->tinyInteger('status')->default(0)->comment('状态');
            $table->integer('tixianmoney')->default(0)->comment('提现金额');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('tixians');
    }
}
